package com.mxr.service.user;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.mxr.dao.user.UserMapper;
import com.mxr.model.Users;

@Service(value = "userService")
@Transactional
public class UserServiceImpl extends ServiceImpl<UserMapper, Users> implements UserService {

	@Autowired
	private UserMapper userMapper;
	
	@Override
	public Page<Users> selectUserPage (Page<Users> page, Wrapper<Users> wrapper) {
		page.setRecords(userMapper.selectPage(page, wrapper));
		page.getPages();
		return page;
	}
}
